/**
 * @author xuyh0817
 * @email xuyh0817@foxmail.com
 * @date 2022-02-16 01:41
 * @version 2.0.0
 * @doc todo
 * @website todo
 * @remark  如果要分发源码，需在本文件顶部保留此文件头信息！！
 */
import { COMPONENT_TYPE } from '../../constants'

export default {
  type: COMPONENT_TYPE.TREE_SELECT,
  // 布局参数
  layout: {
    offset: null,
    span: 24
  },
  formItem: {
    prop: Date.now() + '',
    rules: [],
    label: '树型选择控件',
    labelCol: {
      span: 3,
      offset: 0
    },
    wrapperCol: {
      span: 21,
      offset: 0
    }
  },
  attrs: {
    treeData: '[{"id":1,"pId":0,"value":"1","title":"新疆","selectable":false,"children":[{"id":4,"pId":1,"value":"4","title":"乌鲁木齐","isLeaf":true}]},{"id":2,"pId":0,"value":"2","title":"陕西","selectable":false,"children":[{"id":5,"pId":2,"value":"5","title":"西安","isLeaf":true}]},{"id":3,"pId":0,"value":"3","title":"北京","isLeaf":true}]',
    multiple: false,
    allowClear: true,
    placeholder: '请选择',
    searchPlaceholder: '请输入',
    showSearch: true,
    dropdownMatchSelectWidth: true,
    showCheckedStrategy: 'SHOW_CHILD',
    associations: [{
      key: 'treeLabel',
      mapKey: 'title'
    }]
  }
}
